<template>
  <el-dialog
    title="驳回意见"
    :visible.sync="dialogVisible"
    width="30%"
    style="margin-top:15vh"
    :before-close="handleClose"
  >
    <el-form label-width="80px">
        <el-form-item label="反馈意见">
          <el-input
            type="textarea"
            :rows="3"
            style="width: 360px"
            placeholder="请输入内容"
            v-model="returnContent"
            readonly
          ></el-input>
        </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import { getDetail } from "@/api/datacentersg/achives/documentApi";
import store from "@/store";
export default {
  data() {
    return {
      dialogVisible: false,
      returnContent:"",
      row:"",
    };
  },
  methods: {
    init(row) {
      this.dialogVisible = true;
      this.row = row;
      console.log(this.row)
      this.getListDetail();
    },
    getListDetail(){
      const params={
        userId: store.getters.user_id.toString(),
        token: store.getters.token.toString(),
        data:{
          applyId:this.row.applyId,
        }
      }
      getDetail(params).then((result) =>{
         if(result.result){
            this.returnContent = result.resultdata.data.returnContent
         }
      })
    },
    handleClose(done) {
      done();
    },
  },
};
</script>

<style>
</style>